<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>登陆页面</title>
<script type="text/javascript" src="../js/jquery-1.8.2.js"></script>
<script type="text/javascript">
<c:if test="${meg!=null }">alert('${meg}')</c:if>
function check(){
	if($('#name').attr('value')==''){
		$('#name').css('border-color','red');
		return false;
	}
	if($('#pwd').attr('value')==''){
		$('#pwd').css('border-color','red');
		return false;
	}
	return true;
}
</script>
<style type="text/css">
 .butt {width:100px;
 		height:40px;
 		background-color:green;
 		}
 .butt:hover  {
 background-color:yellow;
 cursor:pointer;
 }
 input{
 	font-size:20px;
 }
</style>
</head>
<body>

<div style="font-size:30px;color:red;text-align:center;line-height:80px">
	<h1>欢迎来到控制计划管理系统</h1>
</div>
<div style="font-size:30px;text-align:center;line-height:50px">
	<form action="login" method="post" onsubmit="return check();">
		用户名：<input id="name" type="text" name="uname"/><br/>
		密&nbsp;&nbsp;码：<input id="pwd" type="password" name="upwd" /><br/>
		<input class="butt"  type="submit" value="登陆" />&nbsp;&nbsp;<input class="butt"  type="reset" value="重置" />
	</form>
</div>
</body>
</html>